<?php
include 'konek.php';
echo '<link rel="stylesheet" type="text/css" href="../css/bootstrap/css/bootstrap.min.css">';
if($_GET['stat']=='siswa')
{
	$status=$_GET['stat'];
	$user=$_GET['username'];
	$mysql=mysql_query("SELECT * from siswa where username='$user'");
	$cek=mysql_fetch_assoc($mysql);
	if($cek['username']==$user)
	{
		echo '<span class="btn btn-danger"><i class="glyphicon glyphicon-stop" ></i></span>';	
	}
	else
	{
		echo'<span class="btn btn-success"><i class="glyphicon glyphicon-ok" ></i></span>';
	}
}

if($_GET['stat']=='guru')
{
	$status=$_GET['stat'];
	$user=$_GET['username'];
	$mysql=mysql_query("SELECT * from guru where username = '$user' ");
	$cek=mysql_fetch_assoc($mysql);
	if($cek['username']==$user)
	{
		echo '<span class="btn btn-danger"><i class="glyphicon glyphicon-stop" ></i></span>';	

	}
	else
	{
		echo'<span class="btn btn-success"><i class="glyphicon glyphicon-ok" ></i></span>';
		
	}
}
?>